import requests
BASE_URL = "https://www.xinshipu.com/"

HEADERS = {
    'Authorization': 'admin eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJndWVzdCIsImV4cCI6MTYwNDY2NTI0MX0.dUAgnQFNBmO7lf5RtgNQYOvmrp-fzbpkLLZUqz_tQEdjbDDdCuT7BTV0pbS3bcdx-pDfbfpksz7Zid2IAfFJW5mapAael_J2aVZrCO7gIWOUXaWfmEmzhG0vtgSRpZa8xyy77nMVl72M3ynNAUwe25SSEM416xoOIh6c3kMJiKdkZ-oZmouDxsIfTowki4SA3TK1afVzaWq_gHyv3DbsUDV4rCvcxm359oR2xFy1xHR0OVrqv_0ExXFV0unDtLfWX4zIbQqNM9JHlKE8NTUeLfHfnY6F8C9qeEBnF0bkrigQvsOBt-TihghAFs3YF53mujE8XB7L0eiqIo-CianPztkYdjuE-W0IwddeHxOSUqKZ0C1rmhg6jSmYX7E5Y5oGeValuLKHNOhy7VlwL8vrmQOi5kH9TKYIyHT5u0u_H5R04rqccIxcdk1ghDSPvl6vMVyDTV2vxUmg8GKCcPqDjJ-giyE4rr58zJJ2fH8RXfVLHy5CokaZ67gcjNYBXf9CoXkmEJwihrxM5TPz-fS950gLQ5M2hWx1X2v8FNoLD5_v9iIvOyQuIT1PrfLFGvuxEwXXGtPaaJ9gEOEwA9QsQqruOycKArBFGVF7rclyUdfts_01TskcKvaTXVZGcT_jeDYzoDkB_Rjq3GQSLTAtopW5MOnPG4oYyz1uJ-w7Klo',
    'Cookie': 'session=eyJ0b2tlbiI6IjMyMjE6TUVRQ0lFUWtLdS9VYStpUWRyaTQ2ZnBLWVFleVNZUm9rdVl4WFN1WFAxazBDa1RJQWlCbDVwMVhrKzdObDdBdUYrRDF0WnRKYzB5eXZYMWM4aGNRejVDMEJiQ2xJQT09In0.X6U1og.0uZAuAx2LFQrka8jUvlwOHM7F7g; JSESSIONID=F80F30BED002D6A35127AE8FEF9612F2'
}

def get_access_token():
    host = 'https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=client_secret='
    response = requests.get(host)
    access_token = response.json().get("access_token")
    return access_token

